package com.ls.pattern.behavior.chain_responsibility;

//院长
public class CollegeApprover extends Approver {

    public CollegeApprover(String name) {
        super(name);
    }

    @Override
    public void processRequest(PurchaseRequest request) {
        if (request.getPrice() <= 10000 && request.getPrice() > 5000) {
            System.out.println("院长处理");
        } else {
            nextApprover.processRequest(request);
        }
    }
}
